<div class="sectionlinks">
        <% if params[:relationship_id] %>
            <%= link_to "words", {# link_to options
                        :controller => 'word',
                        :action => 'shared_words',
                        :id => @story.id,
                        :relationship_id => params[:relationship_id]
                        } %>
            <%= link_to "categories", {# link_to options
                        :controller => 'story',
                        :action => 'categories',
                        :id => @story.id,
                        :relationship_id => params[:relationship_id]
                        } %>
        <% else %>
            <%= link_to "edit", {# link_to options
                        :controller => 'story',
                        :action => 'edit',
                        :id => @story.id
                        } %> |
            <%= link_to "words", {# link_to options
                        :controller => 'word',
                        :action => 'from_story',
                        :id => @story.id
                        } %> |
            <%= link_to "share", {# link_to options
                        :controller => 'sharing',
                        :action => 'share_story',
                        :id => @story.id
                        } %> |
            <span class="delete"><%= link_to "delete", {# link_to options
                                            :controller => 'story',
                                            :action => 'delete',
                                            :id => @story.id },
                                            { # html options
                                                :method => :post,
                                                :confirm => "Really delete #{@story.title}?"
                                            } %></span>
        <% end %>
</div>